/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.venta.modelo;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author Claudio
 */
@Entity
@Table(name = "VTTCOB", schema = "dbo")
public class Cobrador implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "VTTCOB_COBRAD", nullable = false, length = 6)
    private String vttcobCobrad;
    @Basic(optional = false)
    @Column(name = "VTTCOB_DESCRP", nullable = false, length = 60)
    private String vttcobDescrp;
    @Column(name = "VTTCOB_PORCEN", precision = 15, scale = 7)
    private BigDecimal vttcobPorcen;
    @Column(name = "VTTCOB_LEGAJO")
    private Integer vttcobLegajo;
    @Column(name = "VTTCOB_NATMER", length = 20)
    private String vttcobNatmer;
    @Column(name = "VTTCOB_TIPLIQ", length = 1)
    private String vttcobTipliq;
    @Column(name = "VTTCOB_SUCURS", length = 6)
    private String vttcobSucurs;
    @Column(name = "VTTCOB_CODPAI", length = 3)
    private String vttcobCodpai;
    @Column(name = "VTTCOB_CODPOS", length = 10)
    private String vttcobCodpos;


    public Cobrador() {
    }

    public Cobrador(String vttcobCobrad) {
        this.vttcobCobrad = vttcobCobrad;
    }

    public Cobrador(String vttcobCobrad, String vttcobDescrp) {
        this.vttcobCobrad = vttcobCobrad;
        this.vttcobDescrp = vttcobDescrp;
    }

    public String getVttcobCobrad() {
        return vttcobCobrad;
    }

    public void setVttcobCobrad(String vttcobCobrad) {
        this.vttcobCobrad = vttcobCobrad;
    }

    public String getVttcobDescrp() {
        return vttcobDescrp;
    }

    public void setVttcobDescrp(String vttcobDescrp) {
        this.vttcobDescrp = vttcobDescrp;
    }

    public BigDecimal getVttcobPorcen() {
        return vttcobPorcen;
    }

    public void setVttcobPorcen(BigDecimal vttcobPorcen) {
        this.vttcobPorcen = vttcobPorcen;
    }

    public Integer getVttcobLegajo() {
        return vttcobLegajo;
    }

    public void setVttcobLegajo(Integer vttcobLegajo) {
        this.vttcobLegajo = vttcobLegajo;
    }

    public String getVttcobNatmer() {
        return vttcobNatmer;
    }

    public void setVttcobNatmer(String vttcobNatmer) {
        this.vttcobNatmer = vttcobNatmer;
    }

    public String getVttcobTipliq() {
        return vttcobTipliq;
    }

    public void setVttcobTipliq(String vttcobTipliq) {
        this.vttcobTipliq = vttcobTipliq;
    }

    public String getVttcobSucurs() {
        return vttcobSucurs;
    }

    public void setVttcobSucurs(String vttcobSucurs) {
        this.vttcobSucurs = vttcobSucurs;
    }

    public String getVttcobCodpai() {
        return vttcobCodpai;
    }

    public void setVttcobCodpai(String vttcobCodpai) {
        this.vttcobCodpai = vttcobCodpai;
    }

    public String getVttcobCodpos() {
        return vttcobCodpos;
    }

    public void setVttcobCodpos(String vttcobCodpos) {
        this.vttcobCodpos = vttcobCodpos;
    }

  

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (vttcobCobrad != null ? vttcobCobrad.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Cobrador)) {
            return false;
        }
        Cobrador other = (Cobrador) object;
        if ((this.vttcobCobrad == null && other.vttcobCobrad != null) || (this.vttcobCobrad != null && !this.vttcobCobrad.equals(other.vttcobCobrad))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "tv.venta.modelo.Cobrador[vttcobCobrad=" + vttcobCobrad + "]";
    }

}
